# coding: utf-8
from sqlalchemy import Column, DateTime, Integer, String
from sqlalchemy.schema import FetchedValue
from flask_sqlalchemy import SQLAlchemy


from application import db

class CheckList(db.Model):
    __tablename__ = 'check_list'

    id = db.Column(db.Integer, primary_key=True)
    member_id = db.Column(db.Integer, nullable=False)
    device_number = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    company = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    commission_date = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    contact = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    mobile = db.Column(db.String(11), nullable=False, server_default=db.FetchedValue())
    member_status = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    administor_status = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    reason = db.Column(db.String(255), nullable=False, server_default=db.FetchedValue())
    update_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())
    create_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())
